<div class="mainbody">
  <table border="0"  cellspacing="0" cellpadding="0" style="width:100%;">
    <tr>
      <td valign="top" style="width:150px;"><div class="tableborder">
        <div class="tableheader">Feed管理</div>
        <div class="leftmenubody">
          <div class="leftmenuitem">&#8226; <a href="index.php?job=feed&action=list">Feed列表</a></div>
        </div>
      </div></td>
      <td valign="top" style="width:20px;"></td>
      <td valign="top">
	  <form action="index.php?job=feed" method="POST" name="form"><table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
	  <tr><td class="rightmainbody"><table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
<!--if:(in_array($action, array('addfeed', 'modfeed')))-->
    <input type="hidden" name="action" value="do{$action}">
    <input type="hidden" name="id" value="$feed[feedid]">
    <tr class="tdbheader">
      <td colspan="2">Feed编辑</td>
    </tr>
    <tr class="tablecell">
      <td>状态:</td>
      <td><select name="state"><option value="1" selected>显示</option><option value="0">隐藏</option><option value="2">固顶</option></select></td>
    </tr>
    <tr class="tablecell">
      <td>文章名称:</td>
      <td><input name="title" type="text" class="formfield" value="$feed[feed_title]" size="35" maxlength="100" id="title"></td>
    </tr>
    <tr class="tablecell">
      <td>站点名称:</td>
      <td>$feed[site_name]</td>
    </tr>
    <tr class="tablecell">
      <td>文章地址</td>
      <td><input name="rss_url" type="text" id="rss_url" value="$feed[feed_url]" size="50" maxlength="100" /></td>
    </tr>
    <tr class="tablecell">
      <td>文章内容:</td>
      <td><textarea name="icon" cols="70" rows="6" id="icon">$feed[feed_content]</textarea></td>
    </tr>
    <tr class="tablecell">
      <td>发布时间:</td>
      <td>$feed[addtime]</td>
    </tr>
    <tr class="tablecell">
      <td>点击:</td>
      <td><input name="count" type="text" id="count" value="$feed[feed_count]" size="50" maxlength="100" /></td>
    </tr>    
    <tr class="tablecell">
      <td colspan="2" align="center"><input type="submit" value="提交" class="formbutton"> <input type="reset" value="重置" class="formbutton"></td>
    </tr>
<!--elseif:($action == 'list')-->
    <input type="hidden" name="action" value="domorefeed">
    <tr class="tdbheader">
      <td width="6%" nowrap>排序</td>
      <td width="10%">状态</td>
      <td>名称</td>
      <td>作者</td>
      <td>分类</td>
      <td>更新时间</td>
      <td>操作</td>
      <td  nowrap><input name="chkall" value="on" type="checkbox" onclick="checkall(this.form)"></td>
    </tr>
<!--for:$feeddb $key $feed-->
    <tr class="tablecell">
      <td><input class="formfield" style="text-align:center;font-size:11px;" type="text" value="$feed[displayorder]" name="displayorder[$feed[feedid]]" size="1"></td>
      <td><select name="state[$feed[feedid]]">$feed[state]</select></td>
      <td><a href="$feed[feed_url]" target="_blank"><img src="../images/admin/feed.png" border="0" alt="$lang[_LANG_0407]" /></a> $feed[feed_title]</td>
      <td>$feed[site_name] </td>
      <td>$feed[site_name] </td>
      <td>$feed[addtime]</td>
      <td><a href="index.php?job=feed&action=modfeed&amp;id=$feed[feedid]"><img src="../images/admin/feed_add.png" alt="$lang[_LANG_0407]" border="0" /></a> </td>
      <td nowrap><input type="checkbox" name="delete[]" value="$feed[feedid]"></td>
    </tr>
<!--/for-->
  <tr class="tablecell">
    <td colspan="9" nowrap="nowrap"><div class="records">记录:$tatol</div>
                  <div class="multipage">$multipage</div></td>
  </tr>
    <tr class="tablecell">
      <td colspan="9" align="center"><input type="submit" value="更新 / 删除(所选)" class="formbutton"></td>
    </tr>
<!--/if-->
    <tr>
      <td class="tablebottom" colspan="9"></td>
    </tr>
      </table></td>
    </tr>
  </table>
</form></td>
    </tr>
  </table>
</div>
<!--include:footer-->
